package jtk.project4.fleet.field;




import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.SortOrder;

import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TableField;
import nl.coderight.jazz.form.field.TableField.AutoResizeMode;

public class EmailNotificationField extends GroupControl{
	private TableField EmailNotificationTable ;
	
	
	public EmailNotificationField(String bindID){
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		//setup table
		EmailNotificationTable = new TableField("equipments","equipment");
		//EmailNotificationTable.setTitle("EmailNotification.header.table");
		EmailNotificationTable.setAutoResizeMode(AutoResizeMode.OFF);
		EmailNotificationTable.getSelectionValues();
		
		//add columns
		EmailNotificationTable.addColumn("date","Date");
		EmailNotificationTable.addColumn("recipient","Recipient");
		EmailNotificationTable.addColumn("email","E-mail");
		EmailNotificationTable.addColumn("subject","Subject");
		EmailNotificationTable.addColumn("Body","brp?");
		
	}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addField(EmailNotificationTable);
	}
	

}